package com.face.server.service;

import com.arcsoft.AFR_FSDK_FACEMODEL;
import com.arcsoft.FaceInfo;
import com.face.RespMsg;
import com.face.client.model.NotFoundFaceException;
import com.face.server.entity.DormitoryAdmin;
import com.face.server.entity.FaceModel;
import com.face.server.entity.Joined;
import com.face.server.entity.Student;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface IFaceDetectService {

    FaceInfo[] doDetect(MultipartFile file) throws IOException;

    AFR_FSDK_FACEMODEL getModel(MultipartFile file) throws IOException, NotFoundFaceException;

    FaceModel saveModel(AFR_FSDK_FACEMODEL model, MultipartFile file) throws IOException;

    String save(MultipartFile file, Student student) throws IOException, NotFoundFaceException;


    RespMsg updateFaceModels(Joined joined, String fid, MultipartFile file) throws IOException;
}
